package src.entity;

import java.math.BigDecimal;

/**
 * 水果实体类
 */
public class Fruit {

    /**
     * 名称
     */
    private String name;
    /**
     * 价格
     */
    private BigDecimal price;

    public Fruit() {
    }

    public Fruit(String name, BigDecimal price) {
        this.name = name;
        this.price = price;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }
}
